package cn.myj2c.executor.values;

public class JavaInteger extends JavaValue {
    private int value;

    public JavaInteger(int value) {
        this.value = value;
    }

    @Override
    public int intValue() {
        return this.value;
    }

    public JavaInteger copy() {
        return new JavaInteger(value);
    }

    public void increment(int amount) {
        value += amount;
    }
    public String toString() {
        return "JavaInteger(value=" + value + ")";
    }
}
